from django.db import models
from django.contrib.auth.models import User as sysusers
# Create your models here.


from django.db import models  # Create your models here.


class User(models.Model):
    username = models.CharField(max_length=30)
    headImg = models.FileField(upload_to='./upload/')

    def __str__(self):
        return self.username


class userpro(models.Model):
    user = models.OneToOneField(sysusers)
    name = models.CharField(u'姓名', max_length=30)

    def __str__(self):
        return self.name


class 原型托管(models.Model):
    原型 = models.CharField(max_length=255,unique=True)
    域名 = models.CharField(max_length=255)
    备注 = models.CharField(max_length=255,null=True)
    times = models.DateTimeField(auto_now=True)
    headImg = models.FileField(upload_to='./upload/',null=True)

    def __str__(self):
        return self.原型
class 文件解压路径(models.Model):
    路径= models.CharField(max_length=90)
    解压命令= models.CharField(max_length=90)
    def __str__(self):
        return self.路径

class 域名配置(models.Model):
    domain=models.CharField(max_length=90)

    def __str__(self):
        return self.domain
